package com.nh.reception.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nh.common.pojo.Log;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: LaoCao
 * @Date: 2023/3/16 16:40
 * @Version: 1.0
 **/
@Mapper
public interface ReceptionMapper extends BaseMapper<Log> {
    /**
     * 批量添加日志数据
     */
    void batchLogs(@Param("logList") List<Log> logList);

    /**
     * 获取指定日期的所有
     * @param date
     * @return
     */
    List<String> findAllLogId(String date);

    /**
     * 根据日志int期查询对应的日志id集合
     */
    List<Long> selectLogIdListByLogIdAndDate(@Param("logId") Long logId,@Param("date") String date);
}
